package com.yue.springDemo.business.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

@ApiModel(description = "注册信息")
public class RegisterUser {

    @ApiModelProperty(name = "name", value = "工号", required = true, dataType = "String")
    @NotBlank(message = "工号不能为空")
    private String jobNumber;

    @ApiModelProperty(name = "name", value = "密码", required = true, dataType = "String")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(name = "name", value = "名称", required = true, dataType = "String")
    @NotBlank(message = "名称不能为空")
    private String name;

    public String getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(String jobNumber) {
        this.jobNumber = jobNumber;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "RegisterUser{" +
                "jobNumber='" + jobNumber + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
